﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SDT.Lib.Paging;
using SDT.Model;

namespace SDT.Site.ViewModels
{
    public class CompanyIndexModels
    {
        public IPagedList<Company> Companies { get; set; }
        public string ImagePath { get; set; }
        public string ImageUrl { get; set; }
        public IList<City> Cities { get; set; }
        public IList<District> Districts { get; set; }
        public IList<CompanyType> CompanyTypies { get; set; }
        public string Keyword { get; set; }

        public City City { get; set; }
        public District District { get; set; }
        public CompanyType CompanyType { get; set; }
        
        public int CityID { get; set; }
        public int DistrictID { get; set; }
        public int CompanyTypeID { get; set; }

    }
    public class CompanyListModels
    {
        public IList<Company> Companies { get; set; }
        public string ImagePath { get; set; }
        public string ImageUrl { get; set; }
        public IList<City> Cities { get; set; }
        public IList<District> Districts { get; set; }
        public IList<CompanyType> CompanyTypies { get; set; }
        public CompanyType CompanyType { get; set; }

        public int CityID { get; set; }
        public int DistrictID { get; set; }
        public int CompanyTypeID { get; set; }
        public string Keyword { get; set; }
    }
    public class CompanyDetailModels
    {
        public Company Company { get; set; }
        public string ImagePath { get; set; }
        public string ImageUrl { get; set; }
    }
    public class CompanyEditViewModel
    {
        public Company Company { get; set; }
        public List<City> Cities = new List<City>();
        public List<District> Districts { get; set; }
        public List<CompanyType> CompanyTypes { get; set; }
        public string ImagePath { get; set; }
        public string ImageUrl { get; set; }
        
    }
}
